<?php

use yii\bootstrap\BootstrapAsset;
BootstrapAsset::register($this);

?>

<select multiple class="form-control" id="kucunsel" style="height: 400px;">
    <?php foreach ($pigs as $key => $row){ ?>
        <option value="<?= $row['id'] ?>">
            仔猪编号：<?= $row['no'] ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </option>
    <?php } ?>
</select>